package com.java.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.java.entity.Deposit;
import com.java.entity.Money;
import com.java.mapper.DepositMapper;
import com.java.mapper.MoneyMapper;
import com.java.service.DepositService;
import com.java.service.MoneyService;

@Service("DepositServiceImpl")
public class DepositServiceImpl implements DepositService {

	@Autowired
	private DepositMapper dm;

	@Override
	public int insert(Deposit deposit) {
		// TODO Auto-generated method stub
		return dm.insert(deposit);
	}

	@Override
	public int update(Deposit deposit) {
		// TODO Auto-generated method stub
		return dm.updateByPrimaryKeySelective(deposit);
	}

	@Override
	public List<Deposit> all() {
		// TODO Auto-generated method stub
		return dm.all();
	}

	@Override
	public Deposit selectById(Integer id) {
		// TODO Auto-generated method stub
		return dm.selectByPrimaryKey(id);
	}




	


}
